//    Copyright (C) Kherty.  All rights reserved.
using System;

namespace OpenLS.Spreadsheet.Extensibility
{
    [AttributeUsage (AttributeTargets.Assembly,AllowMultiple = false)]
    public class AddInLocalizerAttribute: Attribute
    {
        public AddInLocalizerAttribute(Type loc)
        {

            _loc = loc.GetConstructor(new Type[0]).Invoke(new object[0]) as IFunctionLocalizer;
        }
        private readonly IFunctionLocalizer _loc;
        public IFunctionLocalizer Localizer
        {
            get { return _loc; }
        }
	
    }
}
